<?php
	class ContactForm_Submissions extends Backend_Controller{

		//backend list, and form behaviour
		public $implement = 'Db_ListBehavior, Db_FormBehavior';
		public $list_model_class = 'ContactForm_Submission';
		//cannot set value here since we need to call url();
		public $list_record_url = null;
		
		
		//Db_ListBehavior fields
		public $list_search_enabled = true;
		public $list_search_fields = array('@submissionID');
		public $list_search_prompt = 'find submissions by user or column value';

		
		
		
		public function __construct(){
			parent::__construct();
			//edit submission entry
			$this->list_record_url = url('/contactform/submissions/edit/');
			$this->app_module_name = 'Contact Form';
			$this->app_tab = 'contactform';			
		}
		public function index(){
			$this->app_page_title = 'Submissions';
		}
		public function edit(){
			$this->app_page_title = 'S';
		}
	}



?>